# 获取脚本的绝对路径
script_path=$(readlink -f "$0")
# 获取脚本所在目录
script_dir=$(dirname "$script_path")
# 创建build目录
build_dir="${script_dir}/build1"
if [ -d "$build_dir" ]; then
    cd $build_dir
else
    mkdir -p $build_dir
    cd $build_dir
fi

cmake ..
make -j8
cd -